package ups.apps.negocio;

import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import ups.apps.model.Cliente;




@Stateless
public class SeleccionDao {
	
	@Inject
	EntityManager em;
	
	public List<Cliente> getCliente(){		
		String sql="select * from clientes";		
		Query q=em.createNativeQuery(sql,Cliente.class);
		List<Cliente> list=q.getResultList();		
		return list;
	}

}
